package com.ys.web.del.service;

import com.ys.utils.datasource.DataSourceBy;
import com.ys.web.del.mapper.DelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: dhf
 * @ClassName: DelService
 * @Date: 2023/2/10 20:32
 * @Description:用户资金信息删除
 * @Version: 1.0
 */
@Service
public class DelService {
    @Autowired
    private DelMapper delMapper;

    /**
     * @作者: dhf
     * @名称: 删除红包记录
     * @param day
     * @时间: 2023/2/10 20:43
     * @备注:
     * @返回值: int
     */
    @DataSourceBy("ysIm")
    public int delRed(String day) {
        return delMapper.delRed(day);
    }

    /**
     * @作者: dhf
     * @名称: 删除红包领取记录
     * @param day
     * @时间: 2023/2/10 20:43
     * @备注:
     * @返回值: int
     */
    @DataSourceBy("ysIm")
    public int delRedFlow(String day) {
        return delMapper.delRedFlow(day);
    }

    /**
     * @作者: dhf
     * @名称: 删除转账数据
     * @param day
     * @时间: 2023/2/10 20:43
     * @备注:
     * @返回值: int
     */
    @DataSourceBy("ysIm")
    public int delTransferFlow(String day) {
        return delMapper.delTransferFlow(day);
    }

    /**
     * @作者: dhf
     * @名称: 删除交易流水信息
     * @param day
     * @时间: 2023/2/10 20:43
     * @备注:
     * @返回值: int
     */
    @DataSourceBy("ysIm")
    public int delAccountFlow(String day) {
        return delMapper.delAccountFlow(day);
    }

    @DataSourceBy("ysIm")
    public int delOrder(String day) {
        return delMapper.delOrder(day);
    }
    @DataSourceBy("ysGoods")
    public int delGoodsOrder(String day) {
        return delMapper.delGoodsOrder(day);
    }
    @DataSourceBy("ysIm")
    public int delWithholdingJob(String day) {
        return delMapper.delWithholdingJob(day);
    }
}
